{if $smarty.session.znf.authenticated}
<div id="logout" style="display: block">
    <a href="index.php?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=logout">Odjava</a>
</div>
{else}
<div id="login" class="small">
    <form id="loginForm" method="post" action="index.php?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=login" >
        <fieldset>
        	<legend>Prijava</legend>
            <input type="hidden" id="loginKey" name="{$key}" />
            <table>
                <tbody>
                    <tr>
                        <td><label for="username">Upor. ime:</label></td>
                        <td><input id="username" name="username" type="text" size="12" class="small"/></td>
                    </tr>
                    <tr>
                        <td><label for="password">Geslo:</label></td>
                        <td><input id="password" name="password" type="password" size="12" class="small"/></td>
                    </tr>
                    <tr>
			<td colspan="2">
			    <a href="index.php?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=recoveryForm"
			       id="passwordLost"
			       class="button small">
				Pozabili geslo?
			    </a>
			    <button type="submit" class="button small positive" id="submitButton">Predloži</button>
			</td>
		    </tr>
                </tbody>
            </table>
        </fieldset>
    </form>
</div>
<div id="logout">
	<ul>
    	<a href="index.php?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=logout">Odjava</a>
	</ul>
</div>
{/if}
